/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package helloplash2;

import plash.display.Sprite;
import plash.display.Stage;
import processing.core.PApplet;

/**
 *
 * @author #0K Srinivasan <hashok.com>
 */
public class HelloPlash2 extends Stage
{
    private Sprite _first = new Sprite();
    
    public HelloPlash2()
    {
        super();
        _init();
    }
    
    private void _init()
    {
        _first.getGraphics().clear();
        _first.getGraphics().setLineStyle(5, 0x000000, 1.0f);
        _first.getGraphics().beginFill(0xCCCCCC, 1.0f);
        _first.getGraphics().endFill();
        this.addChild(_first);
    }
    
    @Override
    public void draw()
    {
        super.draw();
        System.out.println("DRAW METHOD FROM HELLOPLASH2");
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {
        // TODO code application logic here
        PApplet.main(new String[]{"helloplash2.HelloPlash2"});
    }
}
